package org.jgs1904.tieba.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jgs1904.tieba.enums.UserMailStatusEnum;

import javax.persistence.*;

/**
 * @author junki
 * @date 2020/5/12 14:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class UserMail {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String token;

    private Long userId;

    @Enumerated(EnumType.STRING)
    private UserMailStatusEnum status;


}
